home *** CD-ROM | disk | FTP | other *** search
-
- REM here is a basic checkerboard wipe routine.
- REM to use, include this in your program, and then
- REM you need to set up the variable "ckbfrom" to
- REM be the buffer number of the buffer you want to wipe from
- REM and then do a GOSUB 9000.
-
- REM this routine uses line number 9000,9001 and 9002.
- REM and variables: ckbfrom, ckbw, ckbh, ckbx, ckby, ckbX, ckbY
-
-
- rem *** do a checkerboard wipe
-
- 9000 resolution -1,ckbw,ckbh,ckbx
- ckbw=(ckbw+7)/8
- ckbh=(ckbh+7)/8
-
- rem checkerboard phase 1
-
- REM if you swap the two FOR's or swap the 7 and 0 on either FOR
- REM you can get it to wipe in various directions, up and down,
- REM left to right, etc.
-
- for ckbx=0 to 7
- for ckby=0 to 7
- if (ckbx+ckby)%2=0:goto 9001:endif
- ckbX=ckbx*ckbw
- ckbY=ckby*ckbh
- blit ckbfrom,ckbX,ckbY,ckbX,ckbY,ckbw,ckbh
- REM you can put a short pause here to slow down the wipe
- 9001 next
- next
-
- rem checkerboard phase 2
-
- for ckbx=7 to 0
- for ckby=7 to 0
- if (ckbx+ckby)%2:goto 9002:endif
- ckbX=ckbx*ckbw
- ckbY=ckby*ckbh
- blit ckbfrom,ckbX,ckbY,ckbX,ckbY,ckbw,ckbh
- REM a pause would go here
- 9002 next
- next
- return
-
-